package com.saikuo.service.controller;

import com.saikuo.service.service.ICommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by shanchangyu on 16/10/28.
 */
@Api(value = "工具类接口", description = "非业务类,工具性接口等")
@RestController
@RequestMapping("/tool")
public class CommonController {

    @Autowired
    private ICommonService commonService;

    @ApiOperation(value = "清除药品分类缓存")
    @RequestMapping(value = "/delCategoryCache", method = RequestMethod.GET)
    public void delCategoryCache() {
        commonService.delCategoryCache();
    }

}
